<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>人员信息列表</title>
    <link rel="stylesheet" href="/Public/css/person.css">
    <link rel="stylesheet" href="/Public/dpa/css/page.css">
    <script src="/Public/dpa/js/jquery-2.1.4.js"></script>
    <style>
        button{
            margin-left:50px;
            margin-top:50px;
        }
        .td{
            text-align:center;
        }
    </style>
</head>
<body>
<!--加载导航条开始-->
<div class="nav-bar">
    <ul>
        <li class="in"><a href="<?php echo U('Home/Index/menu');?>">自定义菜单</a></li>
        <li class="in"><a href="<?php echo U('Home/Upload/upload');?>">上传excel</a></li>
        <li class="in"><a href="<?php echo U('Home/Index/unit');?>">单位信息管理</a></li>
        <li class="on"><a href="<?php echo U('Home/Index/personnel');?>">人员信息管理</a></li>
        <li class="in"><a href="<?php echo U('Home/Index/schedule');?>">数据管理</a></li>
        <li class="in"><a href="<?php echo U('Home/Index/connect');?>">交接数据管理</a></li>
        <li  style="background:darkcyan"> <a href="<?php echo U('Home/Index/changepass');?>">更改密码</a></li>
        <li style="background:grey"><a href="<?php echo U('Home/Index/unlogin');?>">退出登录</a></li>
    </ul>
</div>
<!--加载导航条结束-->
<div class="right-container">
    <h1>人员信息列表<a href="/Home/Index/peradd" class="add">添加</a></h1>
    <form action="/Home/Index/personnel" method="get">
    <p>
        <span style="font-size:16px">条件查询:</span>
        <input type="text" name="requester" value="<?php echo I('get.requester'); ?>" placeholder="请输入单位名称" >
        <input type="text" name="client" value="<?php echo I('get.client'); ?>" placeholder="请输入人员名称" >
        <input type="submit" value="查询">
    </p>
    </form>
    <table border="1">
       <tr>
           <th>序号</th>
           <th>单位编码</th>
           <th>委托单位</th>
           <th>委托人</th>
           <th>手机号</th>
           <th>是否验证</th>
           <th>备注</th>
           <th>操作</th>
       </tr>
       <?php if(is_array($list)): foreach($list as $key=>$v): ?><tr>
           <td ><?php echo ($key+1+$first); ?></td>
           <td ><?php echo ($v["unitsum"]); ?></td>
           <td ><?php echo ($v["requester"]); ?></td>
           <td ><?php echo ($v["client"]); ?></td>
           <td ><?php echo ($v["tel"]); ?></td>
           <td ><?php echo ($v["sfyz"]); ?></td>
           <td ><?php echo ($v["remark"]); ?></td>
           <td >
               <a href="<?php echo U('perup',array('requester'=>$v[requester],'tel'=>$v[tel]));?>">更改</a> |
               <a onclick="return confirm('确定要删除吗?');" href="<?php echo U('perdel',array('requester'=>$v[requester],'tel'=>$v[tel]));?>">删除</a>
           </td>
       </tr><?php endforeach; endif; ?>
    </table>
    <div class="green-black"><?php echo ($page_str); ?></div>
</div>
</body>
</html>